package com.sk.app;

import com.steema.teechart.TChart;
import com.steema.teechart.styles.Bar;
import com.steema.teechart.styles.Series;
import android.app.Activity;
import android.os.Bundle;
import android.widget.LinearLayout;

public class TeeChart extends Activity{
	private Series series;
	private TChart chart;
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.tee_chart);
		chart = new TChart(TeeChart.this);
		LinearLayout group = (LinearLayout)findViewById(R.id.teechart);
		group.addView(chart);
		chart.getPanel().setBorderRound(7);
		chart.getAspect().setView3D(true);
		chart.setAutoRepaint(true);
		try {
			chart.removeAllSeries();
			series = Series.createNewSeries(chart.getChart(), Bar.class,null);
			series.fillSampleValues(4);
			chart.addSeries(series);
			series = Series.createNewSeries(chart.getChart(), Bar.class,null);
			series.fillSampleValues(4);
			chart.addSeries(series);
			chart.getLegend().setVisible(false);
			chart.getHeader().setText("Bar Series");
			chart.getHeader().getFont().setSize(14);
		} catch (Exception e) {
			e.printStackTrace();
		}					
	}
	
}

